import { defineStore } from "pinia";

//用来存储登录用户的数据和token
export const useUserStore = defineStore('user', {
    state: () => ({
        token: '',
        loginUser: {}
    }),
    persist: true // 启用持久化
})